<template>
  <div @click="divClick">
    <a @click.prevent.stop ="fn" href="http://www.baidu.com">百度</a>
  </div>
</template>

<script>
export default {
  data() {
    return {
      
    };
  },
  methods: {
    fn() {
      console.log('a被点了');
    },
    divClick() {
      console.log('div被点了');

    }
  },
};
</script>

<style>

</style>